-- GENERATED SPELL FOR [The Rake] --


function spell0_5807(pUnit, Event) --@Muscle Tear,n/a--
pUnit:FullCastSpellOnTarget(12166,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5807', 5270, 1)
end

function Sorts_5807(pUnit, Event)
local choix_sorts_5807 = math.random(0, 0)
if choix_sorts_5807 == 0 then
pUnit:RegisterEvent('spell0_5807', 1, 1)
end
end

function mob5807_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5807', math.random(1500, 3000), 1)
end

function mob5807_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5807_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5807_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5807, 1, 'mob5807_Action')
RegisterUnitEvent(5807, 2, 'mob5807_Leave')
RegisterUnitEvent(5807, 3, 'mob5807_Kill')
RegisterUnitEvent(5807, 4, 'mob5807_Die')
